package com.model.demo.designmodel.template.course;

public class JavaCource extends NetworkCourse {

    private  boolean needHomeworkFlag=false;



    public JavaCource(boolean needHomeworkFlag) {
        this.needHomeworkFlag = needHomeworkFlag;
    }

    @Override
    protected void checkHomework() {
        System.out.println("JAVA课程检查作业");
    }

    @Override
    protected boolean needHomework() {
        return this.needHomeworkFlag;
    }
}
